# $Id: PKGBUILD 57896 2011-11-04 08:47:23Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=libesmtp
pkgver=1.0.6
pkgrel=2
pkgdesc='A library to manage posting mail to a preconfigured MTA.'
arch=('i686' 'x86_64')
url='http://www.stafford.uklinux.net/libesmtp/'
license=('LGPL')
depends=('openssl')
source=("http://www.stafford.uklinux.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('bf3915e627fd8f35524a8fdfeed979c8')
options=('!libtool')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
